package com.drinks.yiniang.entity.common;

/**
 * 版本检测更新json
 * @author han
 * @date 2020/1/7
 */
public class UpdateVersionJson {

    private UpdateVersionData data;

    public UpdateVersionData getData() {
        return data;
    }

    public void setData(UpdateVersionData data) {
        this.data = data;
    }

    public static class UpdateVersionData {
        //是否需要更新 true是
        private boolean need_update;
        private UpdateVersionInfo version_info;

        public boolean isNeed_update() {
            return need_update;
        }

        public void setNeed_update(boolean need_update) {
            this.need_update = need_update;
        }

        public UpdateVersionInfo getVersion_info() {
            return version_info;
        }

        public void setVersion_info(UpdateVersionInfo version_info) {
            this.version_info = version_info;
        }
    }

    public static class UpdateVersionInfo {
        private String id;
        private String version_name;
        private String version_no;
        //是否最新的 1是 0不是
        private String is_new;
        //下载地址
        private String download_url;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getVersion_name() {
            return version_name;
        }

        public void setVersion_name(String version_name) {
            this.version_name = version_name;
        }

        public String getVersion_no() {
            return version_no;
        }

        public void setVersion_no(String version_no) {
            this.version_no = version_no;
        }

        public String getIs_new() {
            return is_new;
        }

        public void setIs_new(String is_new) {
            this.is_new = is_new;
        }

        public String getDownload_url() {
            return download_url;
        }

        public void setDownload_url(String download_url) {
            this.download_url = download_url;
        }
    }
}
